libmyc.so:add.o sub.o
	gcc -shared -o $@ $^
%.o:%.c
	gcc -fPIC -c $<

.PHONY:clean
clean:
	rm -rf libmyc.so ./*.o

.PHONY:output
output:
	mkdir -p mylib/include
	mkdir -p mylib/lib 
	cp ./*.h mylib/include
	cp ./*.so mylib/lib 
